package com.desay.pangoo.itmt.repository;

import java.util.List;

import com.desay.pangoo.itmt.entity.ProjectEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.desay.pangoo.itmt.controller.vo.*;
import com.desay.pangoo.itmt.entity.TechProjectInfoEntity;

/**
 * @author uidq1163
 */
@Repository
public interface TechRefProjectRepository extends JpaSpecificationExecutor<ProjectEntity>,
		PagingAndSortingRepository<ProjectEntity, Long> {

	/**
	 * 根据项目名称获取项目信息
	 * @param projectName
	 * @return
	 */
	ProjectEntity findByProjectName(@Param("projectName") String projectName);

	/**
	 * 根据项目编号获取项目信息
	 * @param projectNo
	 * @return
	 */
	ProjectEntity findByProjectNo(@Param("projectNo") String projectNo);

}